package com.chwl.framework.grpc.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Inherited
@Retention(RUNTIME)
public @interface GrpcService {

    /**
     * 远程服务名
     * remote server name. Required.
     *
     * @return
     */
    String server() default "";

    /**
     * SpringContext beans name.
     * If not fill in, will match through Class name.
     */
    String bean() default "";

}